package com.wave12.pro_cart.service.impl;

import com.wave12.pro_cart.dao.UserDao;
import com.wave12.pro_cart.entity.User;
import com.wave12.pro_cart.service.UserSeriver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.common.Mapper;

/**
 * @Auther: blackcat
 * @Date: 2021-10-01
 * @Description: com.wave12.pro_cart.service.impl
 * @version:
 */
@Service
public class UserSeriverImpl extends BaseServiceImpl<User>  implements UserSeriver {
    
    @Autowired
    private UserDao userDao;
    
    @Override
    public User getUserById(String userId) {
        User user = new User();
        user.setId(userId);
        return userDao.selectOne(user);
    }
    
    @Override
    protected Mapper<User> getMapper() {
        return this.userDao;
    }
}
